package com.pipi.biyesheji.dao.manager;

import com.pipi.biyesheji.dao.support.PageResult;
import com.pipi.biyesheji.dao.model.CustomerDO;
import com.pipi.biyesheji.dao.query.CustomerQuery;

import java.util.List;


/**
 * Manager for Customer.
 */
public interface CustomerManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CustomerQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CustomerQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(CustomerDO record);

    /**
     * select by query condition.
     */
    List<CustomerDO> selectByQuery(CustomerQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CustomerDO> selectByQueryWithPage(CustomerQuery query);

    /**
     * select by primary key.
     */
    CustomerDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CustomerDO record,  CustomerQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CustomerDO record, CustomerQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CustomerDO record);
}